# EditorConfig <https://editorconfig.org> — 跨编辑器/IDE 的最小风格约定。
# 由各编辑器的 EditorConfig 插件读取,与 ruff/black 等工具的约束保持一致但作用面更宽
# (覆盖非 Python 文件、非工具化编辑场景)。

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.md]
# Markdown 保留行末空白(两空格 = 硬换行)
trim_trailing_whitespace = false

[*.{yml,yaml,json,toml}]
indent_size = 2

[*.sh]
indent_size = 4

[Makefile]
indent_style = tab
